package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("t_kaoqin_wenjian_distribution_detail")
@ApiModel(value = "考勤文件发放明细表")
public class KaoqinWenjianDistributionDetail {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("主表ID")
    private Long distributionId;

    @ApiModelProperty("分发部门")
    private String distributionDepartment;

    @ApiModelProperty("分发编号")
    private String distributionNumber;

    @ApiModelProperty("版本")
    private String version;

    @ApiModelProperty("份数")
    private Integer copyNumber;

    @ApiModelProperty("接收人")
    private String receiver;

    @ApiModelProperty("接收日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate receiveDate;

    @ApiModelProperty("回收人")
    private String collector;

    @ApiModelProperty("回收日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate collectDate;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private String createBy;

    @ApiModelProperty("更新人")
    private String updateBy;

    //@TableLogic 不要逻辑删除
    @ApiModelProperty("是否删除")
    private Boolean isDeleted;
} 